<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>userlist</title>
</head>
<body>
第一个FreeMaker模板页面
<h1>用户列表</h1>
<table border="1">
    <thead>
        <th>编号</th>
        <th>用户名</th>
        <th>性别</th>
        <th>昵称</th>
        <th>操作</th>
    </thead>
    <tbody>
        <!-- freemaker 循环语句 -->
        <#list userList as user>
        <tr>
            <td>${user.id}</td>
            <td>${user.userName}</td>
            <td>${user.userSex!""}</td>
            <td>${user.nickName!""}</td>
            <td>
                <a href="modify?id=${user.id}">修改</a>
                <a href="delete?id=${user.id}">删除</a>
            </td>
        </tr>
        </#list>
    </tbody>

</table>
<a href="add">新增</a>
</body>
</html>